package com.fr.report.script.core.parser;

import com.fr.base.core.BaseCoreUtils;
import com.fr.report.script.Calculator;

public class StringLiteral extends Tiny
{
  private String statement;

  StringLiteral(String paramString)
  {
    this.statement = paramString;
  }

  public Object eval(Calculator paramCalculator)
    throws UtilEvalError
  {
    try
    {
      return BaseCoreUtils.readESC(this.statement);
    }
    catch (Exception localException)
    {
      throw new UtilEvalError(localException);
    }
  }

  public String toString()
  {
    return "\"" + this.statement + "\"";
  }

  public String getExpression(int paramInt1, int paramInt2, int paramInt3, int paramInt4, boolean paramBoolean)
  {
    return toString();
  }
}